package tech.heptagram.staff.query;

import java.util.List;

/**
 * @author wang.yuchuan
 * @date 2018/9/10
 */
public class DepartmentQueryBuilder {

    private DepartmentQuery departmentQuery;

    private DepartmentQueryBuilder() {

    }

    public static DepartmentQueryBuilder builder() {
        DepartmentQueryBuilder builder = new DepartmentQueryBuilder();
        builder.departmentQuery = new DepartmentQuery();
        return builder;
    }

    public DepartmentQueryBuilder departmentId(Integer departmentId) {
        this.departmentQuery.setDepartmentId(departmentId);
        return this;
    }

    public DepartmentQueryBuilder departmentIds(List<Integer> departmentIds) {
        this.departmentQuery.setDepartmentIds(departmentIds);
        return this;
    }

    public DepartmentQuery build() {
        return this.departmentQuery;
    }
}
